<?php
require_once 'conectar.inc.php';

function ORMBeginTransac() {
    $sql = "SET AUTOCOMMIT=0";
    mysql_query($sql) or die(mysql_error());
    
    $sql = "START TRANSACTION";
    mysql_query($sql) or die(mysql_error());
    
}

function ORMCommit() {
    $sql = "COMMIT";
    mysql_query($sql) or die(mysql_error());
}

function ORMRollback() {
    $sql = "ROLLBACK";
    mysql_query($sql) or die(mysql_error());
}
?>
